<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use yii\helpers\Url;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title).'-京东优惠券_唯品会优惠券_淘宝天猫内部优惠券免费领取网站代金券' ?></title>
    <meta name="author" content="<?=Url::to("",true)?>" />
    <?php if (isset($this->blocks['keywords'])): ?>
        <?= $this->blocks['keywords'] ?>
    <?php else: ?>
        <meta name="Keywords" content="郁姐网,淘商品,淘好货,淘宝好商品,代购,担保购买,优惠券,代金券,优惠券网,网购优惠券,电子优惠券,内部优惠券,淘宝,天猫,京东,苏宁,唯品会,聚美优品,网易,灵山优惠券,钦州优惠券,平南优惠券" />
        <meta name="Description" content="郁姐优惠券网免费领取肯德基KFC、麦当劳、淘宝天猫、唯品会、聚美优品、京东、好乐买、汉堡王、必胜客、德克士、苏宁、网易、当当网、一号店等电子购物优惠券。还有更多代金券、红包、优惠券怎么领取和使用、设置等方法攻略！" />
    <?php endif; ?>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<script>
    var DetailUrl = '<?=Url::to(['search/detail'],true)?>';
    var BankUrl = '<?=Url::to(['search/bank'],true)?>';
    var IndexUrl = '<?=Url::to(['search/index'],true)?>';
    var JumpUrl = '<?=Url::to(['site/jump','url'=>''],true)?>';
    var isWx = '<?=\utils\Comm::isWx()?'1':'0'?>'
</script>

<div class="wrap">
    <?php
    NavBar::begin([
        'brandLabel' => Html::img('/img/logo.png',['width'=>'110','height'=>'34','style'=>'position: relative;top: -6px;']),
        'brandUrl' => Url::to('/',true),
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]);
    $menu = [
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => [
            ['label' => '首页', 'url' => Url::to(['site/index'],true)],
            ['label' => '查询优惠券', 'url' => Url::to(['search/change'],true)],
            ['label' => '热销榜', 'url' =>Url::to(['search/bank'],true) ],
            ['label' => '公告栏', 'url' =>Url::to(['search/info-list'],true) ],
            ['label' => '附近的人在找什么？', 'url' => Url::to(['search/word'],true) ],
            ['label' => '有哪些服务', 'url' => Url::to(['site/about'],true) ],
            ['label' => '留言建议', 'url' => Url::to(['site/contact'],true) ],
        ],
    ];
    if(time() < strtotime('2018-03-01')){
        $menu['items'][] = ['label' => '迎新年送大礼', 'url' => Url::to(['search/activity'],true) ];
    }
    echo Nav::widget($menu);
    NavBar::end();
    ?>

    <div class="container">
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= $content ?>
        <div><a href="http://www.beian.miit.gov.cn/" class="" target="_blank">桂ICP备17010457号-2</a></div>
    </div>

    <nav class="navbar navbar-default navbar-fixed-bottom">
        <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#gj-sx">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">高级筛选</a>
            </div>

            <div class="collapse navbar-collapse" id="gj-sx">
                <form class="navbar-form navbar-left" role="search"  method="get" action="<?=\yii\helpers\Url::to(['search/list'],true)?>">
                    <input type="hidden" name="sort" value="4">
                    <div class="input-group input-group-sm col-lg-3">
                        <span class="input-group-addon" id="sizing-addon2">最低价 ¥</span>
                        <input type="text" class="form-control" name="min_price" placeholder="请输入金额" aria-describedby="sizing-addon2" value="<?=Yii::$app->request->get('min_price')?>">
                    </div>
                    <div class="input-group input-group-sm col-lg-3">
                        <span class="input-group-addon" id="sizing-addon3">最高价 ¥</span>
                        <input type="text" class="form-control" name="max_price" placeholder="请输入金额" aria-describedby="sizing-addon3" value="<?=Yii::$app->request->get('max_price')?>">
                    </div>
                    <div class="input-group">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="submit">搜一下 Go!</button>
                        </span>
                        <input type="text" value="<?=Yii::$app->request->get("key_word")?>"  name="key_word" class="form-control" placeholder="请输入要搜索的内容或品牌">
                    </div>
                </form>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="#" onclick='$("html,body").animate({ scrollTop: 0 }, "slow");'>返回顶部</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div>
    </nav>
</div>
<input id="js_copy_do" data-copy="" type="hidden">

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; <?=Yii::$app->params['companyName']?> <?= date('Y') ?> -
            <a target="_black" href="http://www.miibeian.gov.cn" rel="nofollow" >ICP证：桂ICP备17010457号-2</a>
            </p>
        <p class="pull-right">欢迎光临<?=Html::a(Url::to('/',true),Url::to('/',true))?></p>
        <p><a href="<?=Url::to(['search/ali'])?>"></a></p>
<!--        <p class="pull-right">--><?//= Yii::powered() ?><!--</p>-->
    </div>
</footer>
<script>(function(){
        var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?84c8140eb31c44e4330044ecd9818f55":"https://jspassport.ssl.qhimg.com/11.0.1.js?84c8140eb31c44e4330044ecd9818f55";
        document.write('<script src="' + src + '" id="sozz"><\/script>');
    })();
</script>
<script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
